<?php

if(!defined('OI')) {
			
	print '<h1>Access Error</h1>Sorry, this file can not be accessed directly, this is strictly forbidden!';
	exit();
				
}

abstract class GenericClass {

	# Store digitalUniversity
	protected $digitalUniversity = NULL;
	protected $data = array();

	/*
	 * Constructor: Store instance of sitebuilder
	 * 	- PHP5 now uses pass by reference so we do not need to store the reference
	*/
	public function __construct(DigitalUniversity &$digitalUniversity = NULL, &$arguments = array()) {
	
		$this->digitalUniversity =& $digitalUniversity;
		
		# We have custom arguments
		if(!empty($arguments)) {
			
			foreach($arguments as $_key => $_value) {
				
				$this->data[$_key] = $_value;
				
			}
					
		}
		
		# Clean memory
		unset($arguments);
				
	}
	
	/*
	 * Destructor: Clean memory parts
	*/
	public function __destruct() {
		
		unset($this->digitalUniversity);
		
	}
		
}

?>